package class_work.chapter_1_4;

import java.util.Scanner;

/**
 * @author haomin
 * @date 2022/03/30 13:46
 **/
public class CentigradeToFahrenheit {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入摄氏温度：");

        double ce = scanner.nextDouble();
        double fa = (9.0/5)*ce+32;
        System.out.println("华氏温度为：" + fa);
    }
}